package com.jyh.blog.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
/**
 * (Photo)实体类
 *
 * @author jyh
 * @since 2023-02-12 21:29:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Photo implements Serializable {
    private static final long serialVersionUID = -57647746309485754L;
    /**
     * 主键
     */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;
    /**
     * 相册id
     */
    private String albumId;
    /**
     * 照片名
     */
    private String name;
    /**
     * 照片描述
     */
    private String description;
    /**
     * 照片地址
     */
    private String address;
    /**
     * 删除:0否、1是
     */
    private Integer isDelete;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;


}

